
<!--<div ng-controller="linelist1">-->
    <div class="bg-light lter b-b wrapper-md ng-scope">
        <h1 class="m-n font-thin h3 ng-binding">红包产品列表</h1>
    </div>
   
    <div class="pull-left col-sm-12" style="background-color: #ffffff ;margin: 0px 15px;margin-top: 10px">
        <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 25%">
            红包产品名称：
            <input type="text" ng-model="redpacketlist.name">
        </div>
        <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 180px">
            发放类型：
            <select name="" id="" style="width: 100px;height: 26px" ng-model="redpacketlist.rp_type">
                <option value="">未选择</option>
                <option value="01">发放</option>
                <option value="02">自行领取</option>              
            </select>
        </div>
        <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 185px">
            产品状态：
            <select name="" id="" style="width: 100px;height: 26px" ng-model="redpacketlist.status">
                <option value="">未选择</option>
                <option value="0">草稿</option>
                <option value="1">已上架</option>
                <option value="2">已下架</option>              
            </select>
        </div>
            <div class="pull-left" style="text-align:left;margin-top: 14px;  width: 250px">
            产品类型：
            <select ng-model="redpacketlist.type" ng-options="color.code as color.sys_type for color in redpacketlist.types" style="width: 100px;height: 26px"></select>
            <!--<select name="" id="" style="width: 100px;height: 26px" ng-model="redpacketlist.type">
                <div ng-repeat="type in redpacketlist.types">
                    <option value="type.code">{{type.sys_type}}</option>
                </div> 
            </select>-->
                   <!--<div style="width: 160px">
                            <ui-select ng-model="redpacket.type" 
                                on-select="onSelect($item, $model)"
                                >
                                <ui-select-match >
                                    {{$select.selected.sys_type}}
                                </ui-select-match>
                                <ui-select-choices 
                                repeat="item.code as item in redpacketlist.types | filter: $select.search">
                                    <span ng-bind-html="item.sys_type | highlight: $select.search"></span>
                                </ui-select-choices>
                            </ui-select>
                    </div>-->
        </div>
         <div style="margin-top: 10px;margin-right: 30px">
            <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="redpacketlist.search()">搜索</button>
        </div>
    </div>

    <div>
         <div class="col-sm-12 " style="border-bottom: 1px solid #eaeff0;margin-bottom: 25px">
           <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" style="display: table; width: 100%;table-layout:fixed;">
               <thrad>
                <tr >
                    <!--<th style="width: 8%;text-align:center;padding-left: 4px;">产品编号</th>-->
                    <th style="width: 25%;text-align:center;vertical-align:middle;">产品名称/编号</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;">红包规则</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;">发放类型</th>
                    <!--<th style="width: 8%;text-align:center;">库存类型</th>-->
                    <th style="width: 10%;text-align:center;vertical-align:middle;">库存</th>
                    <!--<th style="width: 10%;text-align:center;">是否限制数量</th>-->
                    <th style="width: 10%;text-align:center;vertical-align:middle;">限制数量</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;">产品类型</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;">产品状态</th>
                    <th style="width: 15%;text-align:center;vertical-align:middle;">操作</th>
                </tr>
                </thrad>
                <tbody> 


                <tr ng-repeat="info in a">
                    <!--<td  style="text-align:center;padding-left: 9px;vertical-align:middle;"></td>-->
                    <td  style="text-align:center;vertical-align:middle;">{{info.name}}<br/>{{info.code}}</td>
                    <td  style="text-align:center;vertical-align:middle;">{{info.rule}}</td>
                    <td  style="text-align:center;vertical-align:middle;">{{info.rp_type}}</td>
                    <td  style="text-align:center;vertical-align:middle;">{{info.stock_type}}{{info.stock_num}}</td>
                    <!--<td  style="text-align:center;vertical-align:middle;">{{info.stock_num}}</td>-->
                    <!--<td  style="text-align:center;vertical-align:middle;"></td>-->
                    <td  style="text-align:center;vertical-align:middle;">{{info.max_limit}}{{info.max_limit_num}}</td>
                    <td  style="text-align:center;vertical-align:middle;">{{info.type}}</td>
                    <td  style="text-align:center;vertical-align:middle;">{{info.status}}</td>
                    <td  style="text-align:center;vertical-align:middle; ">
                        <div ng-if="info.statusC">
                            <div class="btn-group" dropdown="">
                                <button type="button" class="btn btn-primary btn-xs" dropdown-toggle="" ng-disabled="disabled" aria-haspopup="true" aria-expanded="false" style="width: 60px">
                                    操作 <span class="caret"></span>  
                                </button>
                                <ul class="dropdown-menu" role="menu" >
                                    <li>
                                        <a ng-click="redpacketlist.details($index)" >详情</a>
                                    </li>
                                    <li>
                                        <a ng-click="redpacketlist.edit($index)" >修改</a>
                                    </li>
                                    <li>
                                        <a ng-click="redpacketlist.delete($index)" >删除</a>
                                    </li>
                                    <li>
                                        <a ng-click="redpacketlist.goup($index)" >上架</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div ng-if="info.statusS">
                            <div class="btn-group" dropdown="">
                                <button type="button" class="btn btn-primary btn-xs" dropdown-toggle="" ng-disabled="disabled" aria-haspopup="true" aria-expanded="false" style="width: 60px">
                                    操作 <span class="caret"></span>  
                                </button>
                                <ul class="dropdown-menu" role="menu" >
                                    <li>
                                        <a ng-click="redpacketlist.details($index)" >详情</a>
                                    </li>
                                    <li>
                                        <a ng-click="redpacketlist.godown($index)" >下架</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <!--<div ng-if="info.detailsshow">                        
                            <div onmouseover="this.style.color='grey'" onmouseout="this.style.color='blue'" ng-click="redpacketlist.details($index)" class="pull-left" style="color: blue;cursor:pointer;">详情</div>
                            <div class="pull-left">|</div>
                        </div>
                        <div ng-if="info.editshow"> 
                            <div onmouseover="this.style.color='grey'" onmouseout="this.style.color='blue'" ng-click="redpacketlist.edit($index)" class="pull-left" style="color: blue;cursor:pointer;">编辑</div>
                            <div class="pull-left">|</div>

                        </div>
                        <div ng-if="info.deleteshow">
                            <div onmouseover="this.style.color='grey'" onmouseout="this.style.color='blue'" ng-click="redpacketlist.delete($index)" class="pull-left" style="color: blue;cursor:pointer;">删除</div>
                            <!--<div class="pull-left">|</div>-->

                        <!--</div>
                        <div ng-if="info.goupshow">
                            <div onmouseover="this.style.color='grey'" onmouseout="this.style.color='blue'" ng-click="redpacketlist.goup($index)" class="pull-left" style="color: blue;cursor:pointer;">上架</div>
                            <div class="pull-left">|</div>
                        </div>
                        <div ng-if="info.godownshow">
                            <div onmouseover="this.style.color='grey'" onmouseout="this.style.color='blue'" ng-click="redpacketlist.godown($index)" class="pull-left" style="color: blue;cursor:pointer;">下架</div>
                        </div>-->
                        <!--<div class="pull-left">|</div>
                        <div onmouseover="this.style.color='grey'" onmouseout="this.style.color='blue'" ng-click="setgroupstate($index)" class="pull-left" style="color: blue;cursor:pointer;width: 45%">设置团期</div>-->
                   </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>


    <div class="text-right" style="background-color: white">
    <pagination 
        total-items="totalItems" 
        ng-model="currentPage" 

        ng-change="pageChanged()"
        previous-text="上一页"
        next-text="下一页"
        first-text="首页"
        last-text="尾页"
        max-size="5"
        boundary-links="true"
        rotate="false"

        items-per-page="itemsPerPage"
        class="m-t-none m-b"></pagination>


    </div>


